<?php
// +----------------------------------------------------------------------
// | TP-Admin [ 多功能后台管理系统 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2016 http://www.hhailuo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 逍遥·李志亮 <xiaoyao.working@gmail.com>
// +----------------------------------------------------------------------

namespace Admin\Controller;
use Admin\Controller\CommonController;

/**
 * 安全车辆
 */
class AceController extends CommonController {
    public $AceModel;
    public function _initialize()
    {
        $this->AceModel = D("Ace");
        //车辆座数
        $bus_type_num = array('4'=>4,'7'=>7,'9'=>9,'11'=>11,'22'=>22,'36'=>36);
        $this->assign('bus_type_num',$bus_type_num);
    }

    public function index()
    {
        $rs = $this->AceModel->aceList();
        $this->assign('rs',$rs);
        $this->display();
    }
    public function details()
    {
        $id = I('id');
        $rs = $this->AceModel->getAce($id);
        $this->assign('rs',$rs);
        $this->display();
    }
    public function save()
    {
        $driver = $_POST['driver'];
        var_dump($driver);die();
    }
}
